package com.uchedao.seller.util;

import android.app.ProgressDialog;
import android.content.Context;
import android.text.TextUtils;

public class ProgressDialogUtil {

	private static ProgressDialog progressDlg;
	
	public static void showProgressDlg(Context context, String message) {
		progressDlg = new ProgressDialog(context, ProgressDialog.THEME_HOLO_LIGHT);
		if(!TextUtils.isEmpty(message))
			progressDlg.setMessage(message);
		progressDlg.show();
	}

	public static void setMessage(String msg) {
		if(progressDlg != null)
			progressDlg.setMessage(msg);
	}
	
	public static void dismissProgressDlg() {
		if(progressDlg != null)
			progressDlg.dismiss();
	}
}
